<template>
   <el-container>
    <el-header height="46px">
      <div class="htlogo">
      <img src="../assets/logo.png" alt="" >

        </div>
        <el-button type="info" @click="logout" size="small" >退出</el-button>
      </div>
    </el-header>
  </el-container>
</template>

<script>
export default {
  data() {
    return {
      activeIndex: "1",
    };
  },
  methods: {
    logout() {
      // 清空token
      window.sessionStorage.clear();
      // 跳转到登录页
      this.$router.push("/login");
    },
  },
};
</script>

<style lang="scss"  scoped>
@import "../assets/css/main.css";
.el-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 3;
  justify-content: space-between;
  display: flex;
}
img{
  width: 100px;
}
</style>
